package com.wonder.app.service;

import cn.hutool.core.io.watch.WatchException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wonder.app.domain.SaleOrder;
import com.wonder.app.domain.SfcOperp;
import com.wonder.app.request.SfcOperpRequest;
import com.wonder.common.common.AjaxResult;

import java.util.List;
import java.util.Map;

public interface SfcOperpService extends IService<SfcOperp> {
    /**
     * 生产订单分页
     * @param sfcOperpRequest
     * @param page
     * @return
     */
    public  IPage<SfcOperp> selectList(SfcOperpRequest sfcOperpRequest, Page<SfcOperp> page);

    /**
     * 导入生产订单
     * @param map
     * @return
     */
    AjaxResult<Object> importOrder(String userName,Long user_id,List<Map<String, Object>> map) throws Exception;

    Map<String, Object> deleteSfcoperp(Map<String, Object> map)  throws Exception;

    /**
     * 获取车间信息
     * @param
     * @return
     * @throws Exception
     */
    AjaxResult<Object> workList(Long user_id) throws Exception;

    AjaxResult<Object> importOrderUpdate(String userName, Long user_id, List<Map<String, Object>> map) throws Exception;
}
